
#import "SEGAddressModel.h"

#if __has_include(<Commom/YYBaseHeader.h>)
#import <Commom/YYBaseHeader.h>
#else
#import "YYBaseHeader.h"
#endif

@implementation SEGAddressModel
- (instancetype)initWithDictionary:(NSDictionary*)dictionary
{
    self = [super init];
    if (self) {
        _id = @"";
        _userAddress = @"";
        _defaultType = @"";
        _contactName = @"";
        _contactPhone = @"";
        _isDefault = @"";
        [self setValuesForKeysWithDictionary:dictionary];
    }
    return self;
}

+ (instancetype)initWithDictionary:(NSDictionary*)dictionary
{
    return [[self alloc] initWithDictionary:dictionary];
}
- (void)setValue:(id)value forUndefinedKey:(NSString*)key
{
}
- (void)setId:(NSString*)id
{
    _id = [[SEGUtils ValueToString:id] copy];
}
- (void)setUserAddress:(NSString*)userAddress
{
    _userAddress = [[SEGUtils ValueToString:userAddress] copy];
}
- (void)setDefaultType:(NSString*)defaultType
{
    _defaultType = [[SEGUtils ValueToString:defaultType] copy];
}

- (void)setContactName:(NSString*)contactName
{
    _contactName = [[SEGUtils ValueToString:contactName] copy];
}

- (void)setContactPhone:(NSString*)contactPhone
{
    _contactPhone = [[SEGUtils ValueToString:contactPhone] copy];
}

- (void)setIsDefault:(NSString*)isDefault
{
    _isDefault = [[SEGUtils ValueToString:isDefault] copy];
}
@end
